package ucl.cs.stockBroker.common;

/**
 * Account Information.
 * @author  K. Bryson.
 * @version 1.0
 */

///////////////// WHY DOES THIS NOT WORK CORRECTLY ? //////////////////

import java.rmi.RemoteException;
import java.io.Serializable;

public class AccountInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private int number;
	private float balance = 0.0f;
	private float totalAccountValue = 0.0f;
	private float sharesValue;

	public AccountInfo(String name, int account_number, float balance,
			float totalAccountValue, float sharesValue) throws RemoteException {
		this.name = name;
		this.number = account_number;
		this.balance = balance;
		this.totalAccountValue = totalAccountValue;
		this.sharesValue = sharesValue;
	}

	public String toString() {
		return " Account number: " + number + "\n Account name: " + name
				+ "\n Balance: " + balance + "\n Shares Value: " + sharesValue
				+ "\n Total Account Value: " + totalAccountValue;
	}
}
